/* 播放历史页面样式 */
.history-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面头部 */
.history-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.history-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.history-description {
    color: #b3b3b3;
    font-size: 16px;
    max-width: 700px;
    line-height: 1.6;
}

.history-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 筛选下拉框 */
.period-filter select {
    padding: 10px 15px;
    border-radius: 4px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.period-filter select:focus {
    outline: none;
    border-color: #1DB954;
}

/* 清除历史按钮 */
.clear-history-btn {
    background-color: transparent;
    color: #b3b3b3;
    border: 1px solid #666;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-history-btn:hover {
    color: #fff;
    border-color: #888;
}

/* 选项卡样式 */
.history-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

.tab-btn {
    background-color: transparent;
    color: #b3b3b3;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1DB954;
}

/* 选项卡内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 歌曲列表样式 */
.history-list {
    width: 100%;
    border-collapse: collapse;
}

.history-list-header {
    display: grid;
    grid-template-columns: 50px 3fr 2fr 120px 100px 80px;
    padding: 0 16px 8px 16px;
    border-bottom: 1px solid #333;
    color: #b3b3b3;
    font-size: 13px;
    font-weight: 500;
}

.track-item {
    display: grid;
    grid-template-columns: 50px 3fr 2fr 120px 100px 80px;
    padding: 8px 16px;
    border-radius: 4px;
    align-items: center;
    transition: background-color 0.2s ease;
}

.track-item:hover {
    background-color: #333;
}

.track-number {
    font-size: 14px;
    color: #b3b3b3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-info {
    display: flex;
    align-items: center;
}

.track-image {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    border-radius: 4px;
    overflow: hidden;
}

.track-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    overflow: hidden;
}

.track-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-album {
    font-size: 14px;
    color: #b3b3b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-date {
    font-size: 14px;
    color: #b3b3b3;
}

.track-duration {
    font-size: 14px;
    color: #b3b3b3;
}

.track-options {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.track-item:hover .track-options {
    opacity: 1;
}

.option-btn {
    background-color: transparent;
    color: #b3b3b3;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.option-btn:hover {
    color: #fff;
}

/* 播放按钮 */
.play-button {
    width: 30px;
    height: 30px;
    background-color: #1DB954;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button i {
    color: #000;
    font-size: 12px;
}

.play-button:hover {
    transform: scale(1.1);
    background-color: #1ed760;
}

/* 艺术家卡片样式 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.artist-card {
    background-color: #282828;
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.artist-card:hover {
    background-color: #333;
}

.artist-img {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 保持为正方形 */
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
}

.artist-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-align: center;
}

.artist-meta {
    font-size: 14px;
    color: #b3b3b3;
    text-align: center;
}

/* 加载更多按钮 */
.load-more {
    margin-top: 40px;
    text-align: center;
}

.load-more-btn {
    background-color: transparent;
    color: #b3b3b3;
    border: 1px solid #666;
    border-radius: 20px;
    padding: 10px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    color: #fff;
    border-color: #888;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .history-list-header,
    .track-item {
        grid-template-columns: 50px 3fr 2fr 120px 80px;
    }
    
    .track-album {
        display: none;
    }
}

@media (max-width: 768px) {
    .history-container {
        padding: 20px;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
    }
    
    .history-list-header,
    .track-item {
        grid-template-columns: 50px 3fr 120px 80px;
    }
    
    .track-date {
        display: none;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 576px) {
    .history-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
    
    .tab-btn {
        padding: 12px 15px;
    }
    
    .history-list-header,
    .track-item {
        grid-template-columns: 40px 1fr 80px;
    }
    
    .track-duration {
        display: none;
    }
} 